/**
 * Created by minigci.he on 16/9/20.
 */
console.log('------------------------')
console.log('test3')

let set = new Set(['red', 'green', 'blue'])
for( let item of set.keys()){
    console.log(item)
}
// red
// green
// blue
console.log('----------------')

for(let item of set.values()){
    console.log(item)
}
// red
// green
// blue
console.log('----------------')

for(let item of set.entries()){
    console.log(item)
}
// ["red", "red"]
// ["green", "green"]
// ["blue", "blue"]

for(let item of set){
    console.log(item);
}
// ["red", "red"]
// ["green", "green"]
// ["blue", "blue"]